#!/bin/ash
#
# /etc/rc.shutdown
#

echo ""
sync
echo ":: Stopping iSCSI Enterprise Target daemon..."
ietadm --op delete
killall ietd
modprobe -r iscsi_trgt
umount -a -r &> /dev/nul
swapoff -a